import pandas as pd
from matplotlib import pyplot
with open("d0504_dataset.txt") as f:
    data_series = pd.Series([int(line) for line in f])

obj = data_series.hist(grid=False, bins=40)
pyplot.show(obj)